﻿@model Gpsys.Web.Models.RoleModel
@{
    ViewBag.Title = "Roles";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section jsFooter{
    <script type="text/javascript" src="@Url.Content("~/Content/js/gps/role.js")"></script>
}
<div class="mws-panel grid_8 mws-collapsible">
    <div class="mws-panel-header">
        <span><i class="icon-table"></i>Roles</span>
    </div>
    <div class="mws-panel-toolbar">
        <div class="btn-toolbar">
            <div class="btn-group">
                <a href="@Url.Action("Create", "Role")" class="btn"><i class="icol-add"></i> Add</a>
            </div>
        </div>
    </div>
    <div class="mws-panel-body no-padding">
        <table class="mws-table mws-datatable">
            <thead>
                <tr>
                    <th>
                        Id
                    </th>
                    <th>
                        Role Name
                    </th>
                    <th>
                        Name
                    </th>
                    <th>
                        Description
                    </th>
                    <th>
                        Created On
                    </th>
                    <th>
                        Last Login
                    </th>
                    <th>
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var wf in Model.Roles)
                {
                    <tr>
                        <td>@wf.Id
                        </td>
                        <td>@wf.RoleName
                        </td>
                        <td>@wf.Name
                        </td>
                        <td>@wf.Description
                        </td>
                        <td>@wf.CreatedOn
                        </td>
                        <td>@wf.LastLogin
                        </td>
                        <td>
                            <span class="btn-group">
                                <a href="@Url.Action("Detail", "Role", new { @Id = wf.Id })" class="btn btn-small"><i class="icon-search"></i></a>
                                <a href="@Url.Action("Edit", "Role", new { @Id = wf.Id })" class="btn btn-small"><i class="icon-pencil"></i></a>
                                <a href="@Url.Action("Delete", "Role", new { @Id = wf.Id })" class="btn btn-small delete-class"><i class="icon-trash"></i></a>
                            </span>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
<!-- Panels End -->
